package com.changpay.zywy.adapter

import android.content.Context
import com.chad.library.adapter.base.BaseQuickAdapter
import com.chad.library.adapter.base.BaseViewHolder
import com.changpay.zywy.R
import com.changpay.zywy.bean.MyAllocaLogBean

/**
 * Created by chenxz on 2018/4/22.
 */
class AllowLogAdapter(private val context: Context?, datas: MutableList<MyAllocaLogBean>)
    : BaseQuickAdapter<MyAllocaLogBean, BaseViewHolder>(R.layout.item_allow_log, datas) {

    override fun convert(helper: BaseViewHolder?, item:MyAllocaLogBean?) {
        item ?: return
        helper ?: return
        helper.setText(R.id.tv_allot_people,item.member_Initiator)
            .setText(R.id.tv_phone,item.recipient_mobile)
            .setText(R.id.tv_time,item.equipment_time)
            .setText(R.id.tv_be_alloc,item.recipient_name)
        if (item.is_type=="0")
        {
//            helper.setText(R.id.tv_get_money,"未付款")
            helper.setText(R.id.tv_get_money,"查看账单")
        }else
        {
            helper.setText(R.id.tv_get_money,"查看账单")
        }
    }

}
